package com.odt.outdoor.utils;

import java.util.ArrayList;

/**
 * Created by DELL on 2017/3/15.
 */

public class TextUtil {
    public TextUtil() {
    }

    public static boolean isValidate(String content) {
        return content != null && !"".equals(content.trim());
    }

    public static boolean isValidate(String... contents) {
        for(int i = 0; i < contents.length; ++i) {
            if(contents[i] == null || "".equals(contents[i].trim())) {
                return false;
            }
        }

        return true;
    }

    public static boolean isValidate(ArrayList<?> list) {
        return list != null && list.size() > 0;
    }
}
